package top.jiachunlei.observer.lesson2;

import java.util.Observable;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/6 22:43
 */
public class RealSubject extends Observable
{
    /*向观察者发送数据*/
    public void makeChanged(String message){
        setChanged();//向观察者发送数据之前必须先调用这个
        notifyObservers(message);
    }
}
